.class public Les/k9;
.super Les/l9;
.source "MediaSimpleSource.java"


# instance fields
.field private f:Landroid/media/MediaFormat;

.field private g:Z

.field private h:Z


# direct methods
.method public constructor <init>(Landroid/media/MediaFormat;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Les/l9;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/k9;->h:Z

    .line 3
    iput-object p1, p0, Les/k9;->f:Landroid/media/MediaFormat;

    const-string v0, "mime"

    .line 4
    invoke-virtual {p1, v0}, Landroid/media/MediaFormat;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "audio/"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    iput-boolean p1, p0, Les/k9;->g:Z

    return-void
.end method


# virtual methods
.method public a(J)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/l9;->j()V

    .line 2
    invoke-virtual {p0}, Les/l9;->a()Les/l9$h;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 3
    iget-boolean p2, p0, Les/k9;->g:Z

    iget-object v0, p0, Les/k9;->f:Landroid/media/MediaFormat;

    invoke-interface {p1, p0, p2, v0}, Les/l9$h;->a(Les/l9;ZLandroid/media/MediaFormat;)I

    move-result p1

    iput p1, p0, Les/l9;->a:I

    :cond_0
    const/4 p1, 0x1

    .line 4
    iput-boolean p1, p0, Les/k9;->h:Z

    return-void
.end method

.method public b()I
    .locals 3

    .line 6
    iget-object v0, p0, Les/k9;->f:Landroid/media/MediaFormat;

    const-string v1, "channel-count"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public b(Lcom/esfile/screen/recorder/media/util/l;)V
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/k9;->h:Z

    if-eqz v0, :cond_1

    .line 2
    iget v0, p0, Les/l9;->a:I

    iput v0, p1, Lcom/esfile/screen/recorder/media/util/l;->e:I

    .line 3
    invoke-virtual {p0, p1}, Les/l9;->a(Lcom/esfile/screen/recorder/media/util/l;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 4
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    :cond_0
    return-void

    .line 5
    :cond_1
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "MediaSimpleSource has not been started!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public c()I
    .locals 3

    .line 1
    iget-object v0, p0, Les/k9;->f:Landroid/media/MediaFormat;

    const-string v1, "frame-rate"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public d()I
    .locals 3

    .line 1
    iget-object v0, p0, Les/k9;->f:Landroid/media/MediaFormat;

    const-string v1, "height"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public e()I
    .locals 3

    .line 1
    iget-object v0, p0, Les/k9;->f:Landroid/media/MediaFormat;

    const-string v1, "sample-rate"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public g()I
    .locals 3

    .line 1
    iget-object v0, p0, Les/k9;->f:Landroid/media/MediaFormat;

    const-string v1, "width"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public h()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/k9;->g:Z

    return v0
.end method

.method public n()Z
    .locals 3

    .line 1
    invoke-super {p0}, Les/l9;->n()Z

    .line 2
    invoke-virtual {p0}, Les/l9;->a()Les/l9$h;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 3
    iget-boolean v1, p0, Les/k9;->g:Z

    iget-object v2, p0, Les/k9;->f:Landroid/media/MediaFormat;

    invoke-interface {v0, p0, v1, v2}, Les/l9$h;->b(Les/l9;ZLandroid/media/MediaFormat;)V

    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method public q()V
    .locals 0

    .line 1
    invoke-super {p0}, Les/l9;->q()V

    .line 2
    invoke-virtual {p0}, Les/l9;->k()V

    return-void
.end method
